const outlet=require('../dao/outletLDao/outletLDao.js')
const add=async (params)=>{
    return await outlet.add(params)
}
const update=async (_id,up)=>{
    return await outlet.update(_id,up);
}
const remove=async (_id)=>{
    return await outlet.remove(_id);
}
const get=async (params)=>{
    if (params.type&&params.value) {
        return await outlet.get(params)
    }else{
        return await outlet.get(params)
    }
}
// const search=async (type, value,curPage ,eachPage)=>{
// }
const upstate=async (_id,state)=>{
    return await outlet.upstate(_id,state);
}
const getone=async (_id)=>{
    return await outlet.getone(_id);
}
const getWait=async (state)=>{
    return await outlet.getWait(state);
}
const link=async (params)=>{
    return await outlet.link(params);
}
const adminpos=async (params)=>{
    return await outlet.adminpos(params);
}
module.exports={add,update,remove,get,upstate,getone,getWait,link,adminpos};